package com.gitee.swsk33.catserviceconsumer.api;

import com.gitee.swsk33.catserviceconsumer.feignclient.PortClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/port")
public class PortAPI {

	@Autowired
	private PortClient portClient;

	@GetMapping("/get")
	public String get() {
		return portClient.getPort();
	}

}